

<%@ page import="com.na.onlineservey.Interview" %>
<form name='gFormInterview' id='gFormInterview'>
  <g:hiddenField name="id" value="${interviewInstance?.id}" />
  <g:hiddenField name="version" value="${interviewInstance?.version}" />
  <div id="remote-content-interviewInstance"></div>
  <fieldset  class="ui-state-default ui-corner-all">
    <legend class="ui-jqgrid-titlebar ui-widget-header  ui-helper-clearfix">Create Interview</legend>
     <table>
      

            <tr>
              <td><g:message code="interview.interviewer.label" default="Interviewer" /></td>
                <td><g:select name="interviewer.id" id="interviewer" from="${com.na.onlineservey.Interviewer.list()}" optionKey="id" value="${interviewInstance?.interviewer?.id}"  />
</td>
            </tr>
          

            <tr>
              <td><g:message code="interview.question.label" default="Question" /></td>
                <td><g:select name="question.id" id="question" from="${com.na.onlineservey.Question.list()}" optionKey="id" value="${interviewInstance?.question?.id}"  />
</td>
            </tr>
          

            <tr>
              <td><g:message code="interview.questionAnsweringOption.label" default="Question Answering Option" /></td>
                <td><g:select name="questionAnsweringOption.id" id="questionAnsweringOption" from="${com.na.onlineservey.QuestionAnsweringOption.list()}" optionKey="id" value="${interviewInstance?.questionAnsweringOption?.id}"  />
</td>
            </tr>
          
         </table>
  </fieldset>
  <br/>
  <div class="buttons">
    <span class="button"><input type="button" name="create-button" id="create-button" class="ui-button ui-widget ui-state-default ui-corner-all" value="${message(code: 'default.button.create.label', default: 'Create')}" onclick="executeAjaxInterview();"/></span>
    <span class="button"><input type='button' name="delete-button" id="delete-button" class="ui-button ui-widget ui-state-default ui-corner-all" value='Delete' onclick="deleteAjaxInterview();"/></span>
    <span class="button"><input type="button" name="cancel-button" id="cancel-button" class="ui-button ui-widget ui-state-default ui-corner-all" onclick=" reset_form('#gFormInterview');" value="Cancel"/></span>
  </div>
</form>
